{include file="public/header" /}
<!-- <style>
    .content img {
        transition-duration: 0.5s;
    }

    .content img:hover {
        transform: scale(4);
    }

    .content .imageframe {
        width: 200px;
        height: 113px;
        overflow: hidden;
    }
</style> -->


<div class="page">
    <table class="ds-default-table">
        <tbody>
            {if $joinin_detail.is_background_add == 1}
            <tr>
                <th>客户名称：</th>
                <td>{$joinin_detail.customer_name}</td>
                <th>客户编码：</th>
                <td>{$joinin_detail.member_client}</td>
            </tr>
            {/if}
            <tr class="noborder">
                <th class="required w120"><label class="" for="contract_name">三三账号:</label></th>
                <td>{$joinin_detail.member_name}</td>
                <th>昵称：</th>
                <td>{$joinin_detail.member_nickname}</td>
            </tr>
            <tr>
                <th>QQ：</th>
                <td>{$joinin_detail.member_qq}</td>
                <th>账号状态：</th>
                <td><?php echo $joinin_detail['member_state'] == 1 ? '启用' : '禁用'; ?></td>
            </tr>
            <tr>
                <th>邀请码：</th>
                <td>{$joinin_detail.invite_code}</td>
                <th>积分：</th>
                <td>{$joinin_detail.member_points}</td>
            </tr>
            <tr>
                <th>父级店铺名称：</th>
                <td>{$joinin_detail.invite_store_name}</td>
                <th>父级店铺账号：</th>
                <td>{$joinin_detail.invite_name}</td>
            </tr>
            <tr>
                <th>注册时间：</th>
                <td>{$joinin_detail.member_addtime|date="Y-m-d H:i:s",###}</td>
                <th>登录次数：</th>
                <td>{$joinin_detail.member_loginnum}</td>
            </tr>
            <tr>
                <th>最后登录时间：</th>
                <td>{$joinin_detail.member_logintime|date="Y-m-d H:i:s",###}</td>
                <th>最后登录ip：</th>
                <td>{$joinin_detail.member_login_ip}</td>
            </tr>
            <tr>
                <th>大客户企业名称：</th>
                <td>{$joinin_detail.member_da_name}</td>
            </tr>

            {if $joinin_detail.is_background_add == 1}
            <tr>
                <th>区域：</th>
                <td>{$joinin_detail.member_address}</td>
                <th>地址：</th>
                <td>{$joinin_detail.member_detail_address}</td>
            </tr>
            <tr>
                <th>建店年份：</th>
                <td>{$joinin_detail.member_start_time}</td>
                <th>税号：</th>
                <td>{$joinin_detail.member_paragraph}</td>
            </tr>
            <tr>
                <th>负责人：</th>
                <td>{$joinin_detail.member_person}</td>
                <th>负责人联系方式：</th>
                <td>{$joinin_detail.member_person_tel}</td>
            </tr>
            <tr>
                <th>联系人：</th>
                <td>{$joinin_detail.contact_name}</td>
                <th>联系人联系方式：</th>
                <td>{$joinin_detail.contact_phone}</td>
            </tr>
            <tr>
                <th>微信：</th>
                <td>{$joinin_detail.member_wx}</td>
            </tr>
            {/if}

            {if $joinin_detail.enterprise_status == 2}
            <tr>
                <th>企业名称：</th>
                <td>{$joinin_detail.enterprise_name}</td>
                <th>企业类型：</th>
                <td>{$name}</td>
            </tr>
            <tr>
                <th>联系人职位：</th>
                <td>{$joinin_detail.contact_title}</td>
                <th>联系人姓名：</th>
                <td>{$joinin_detail.contact_name}</td>

            </tr>
            <tr>
                <th>联系人电话：</th>
                <td>{$joinin_detail.contact_phone}</td>
                <th>联系人座机：</th>
                <td>{$joinin_detail.contact_landline}</td>
            </tr>
            <tr>
                <th>联系人地址：</th>
                <td>{$joinin_detail.contact_address}</td>
                <th>申请认证时间：</th>
                <td>{$joinin_detail.enterprise_time|date="Y-m-d H:i:s",###}</td>
            </tr>
        </tbody>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
        <thead>
            <tr>
                <th colspan="20">文件信息：</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <th class="w150">企业营业执照：</th>
                <td>
                    {notempty name="pic"}
                    <div class="content">
                        {foreach name="pic" item="val"}
                        <span class="thumb size-56x56 imageframe">
                            <img style="width: 100px;height: 100px;margin-left: 20px;" src="{$val}"
                                onload="javascript:ResizeImage(this,56,56);" />
                        </span>
                        {/foreach}
                    </div>
                    {/notempty}
                </td>
                </td>
            </tr>
        </tbody>
    </table>
    {/if}
</div>
<link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
<script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('#btn_fail').on('click', function () {
            if ($('#joinin_message').val() == '') {
                $('#validation_message').text('请输入审核意见');
                $('#validation_message').show();
                return false;
            } else {
                $('#validation_message').hide();
            }
            layer.confirm("确定要拒绝吗", {
                btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
                title: false,
            }, function () {
                $('#verify_type').val('fail');
                $('#form_store_verify').submit();
            });
        });
        $('#btn_pass').on('click', function () {
            var valid = true;
            $('[dstype="commis_rate"]').each(function (commis_rate) {
                rate = $(this).val();
                if (rate == '') {
                    valid = false;
                    return false;
                }

                var rate = Number($(this).val());
                if (isNaN(rate) || rate < 0 || rate >= 100) {
                    valid = false;
                    return false;
                }
            });
            if (valid) {
                $('#validation_message').hide();
                layer.confirm("确定要审核通过吗", {
                    btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
                    title: false,
                }, function () {
                    $('#verify_type').val('pass');
                    $('#form_store_verify').submit();
                });
            } else {
                $('#validation_message').text('{$Think.lang.store_class_commis_rates_error}');
                $('#validation_message').show();
            }
        });
    });
</script>